package com.zgq.share.thirdplatform;

/**
 * 第三方平台常量类
 * @author Administrator
 *
 */
public class PlatformDefs {
	public static final String CALLBACK_URL = "platform://oauth";
	public static String TENCENT_CALLBACK = null;
	public static final String RENREN_CALLBACK = "share_renren";
	public static String code="";
	
	//新浪微博
	public static final int SINA = 0x01;
	public static final String SINA_NAME = "sina";
	public static final String SINA_CONSUMER_KEY = "2596028943";
	public static final String SINA_CONSUMER_SECRET = "2ecdcb317b10edc17ff3d481aea8db44";
	/*public static final String SINA_FUID = "2144771447";*/
	
	//腾讯微博
	public static final int TENCENT = 0x02;
	public static final String TENCENT_NAME = "tencent";
	public static final String TENCENT_CONSUMER_KEY = "be9b60c869154550ae4fdffcf80a65da";
	public static final String TENCENT_CONSUMER_SECRET = "ea006d71906ebed3101028b93a920aae";
	public static final String TENCENT_USERINFO_URL = "http://open.t.qq.com/api/user/info";
	public static final String TENCENT_METHOD = "GET";
	public static final String TENCENT_FORMAT = "json";
	public static final String TENCENT_AUTHORIZE_URL = "https://open.t.qq.com/cgi-bin/authorize";
	public static final String TENCENT_CLIENTIP = "127.0.0.1";
	
	//人人网
	public static final int RENREN = 0x03;
	public static final String RENREN_VERSION = "1.0";
	public static final String RENREN_NAME = "renren";
	public static final int RENREN_APP_ID = 154695;
	public static final String RENREN_API_KEY = "d69b5a36a6024895b1fa4cfef2191587";
	public static final String RENREN_SECRET = "0ac210e5a9ca492ea0b4e81847f4b103";
	public static final String RENREN_METHOD_TYPE = "POST";
	public static final String RENREN_METHOD = "feed.publishFeed";
	public static final String RENREN_FORMAT = "JSON";
	public static final String RENREN_TOKEN_URL = "https://graph.renren.com/oauth/token?";
	public static final String RENREN_REDIRECT_URI = "http://graph.renren.com/oauth/login_success.html";
	public static final String RENREN_SESSION_URL = "https://graph.renren.com/renren_api/session_key?";
	public static final String RENREN_AUTHORIZE_URL = "https://graph.renren.com/oauth/authorize?";
	public static final String WIDGET_CALLBACK_URI = "http://widget.renren.com/callback.html";
	public static final String RENREN_OAUTH_SCOPE = "publish_feed";
}
